/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uno;

import javax.management.RuntimeErrorException;

/**
 *
 * @author abelitro
 */
class X {

    public void foo() {
        System.out.println("X ");
    }
}

public class SubB extends X{
    public void foo() throws RuntimeException{
        super.foo();
        if(true) throw new RuntimeException();
        System.out.print("B ");
    }
    public static void main(String[] args){
        new SubB().foo();
    }
}
